﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
	public class ProductService
	{
		private static readonly ProductDAL db = new ProductDAL();
		#region[Product_GetById]
		public static DataTable Product_GetById(string Data)
		{
			return db.Product_GetById(Data);
		}
		#endregion
		#region[Product_GetByAll]
		public static DataTable Product_GetByAll()
		{
			return db.Product_GetByAll();
		}
		#endregion
		#region[Product_GetByTop]
		public static DataTable Product_GetByTop(string Top, string Where, string Order)
		{
			return db.Product_GetByTop(Top, Where, Order);}
		#endregion
		#region[Product_Insert]
		public static void Product_Insert(ProductInfo Data)
		{
			 db.Product_Insert(Data);
		}
		#endregion
		#region[Product_Update]
		public static void Product_Update(ProductInfo Data)
		{
			 db.Product_Update(Data);
		}
		#endregion
		#region[Product_Delete]
		public static void Product_Delete(string Data)
		{
			 db.Product_Delete(Data);
		}
		#endregion
	}
}